﻿using System;

namespace 特性理解
{
    internal class Program
    {
        [Custom("This is Main function.")]
        static void Main(string[] args)
        {
            OldMethod();
        }

        [Obsolete("Don't use OldMethod, use NewMethod instead", true)]
        private static void OldMethod()
        {
            Console.WriteLine("It is the old method");
        }
    }


    public class CustomAttribute : Attribute
    {
        public CustomAttribute(string mess)
        {
        }
    }
}
